﻿@model LatestTwitter.Models.TwitterWidgetPart

<fieldset>
    <legend>Latest Twitter</legend>
    
    <div class="editor-label">
        @T("Twitter OAuth Consumer Key"): (to be obtained at <a href="https://dev.twitter.com/apps" target="_blank">Twitter</a>)
    </div>
    <div class="editor-field">
        @Html.TextBoxFor(model => model.TwitterConsumerKey)
        @Html.ValidationMessageFor(model => model.TwitterConsumerKey)
    </div>
    
    <div class="editor-label">
        @T("Twitter OAuth Consumer Secret"):
    </div>
    <div class="editor-field">
        @Html.TextBoxFor(model => model.TwitterConsumerSecret)
        @Html.ValidationMessageFor(model => model.TwitterConsumerSecret)
    </div>

    <div class="editor-label">
        @T("Twitter username"):
    </div>
    <div class="editor-field">
        @@@Html.TextBoxFor(model => model.Username)
        @Html.ValidationMessageFor(model => model.Username)
    </div>
    
    <div class="editor-label">
        @T("Optionally, filter this user's tweets by hashtag (comma separated e.g. '#microsoft,#justv')"):
    </div>
    
    <div class="editor-field">
        @Html.TextBoxFor(model => model.HashTagsFilter)
    </div>

    <div class="editor-label">
        @T("Number of Tweets to display"):
    </div>
    <div class="editor-field">
        @Html.TextBoxFor(model => model.Count)
        @Html.ValidationMessageFor(model => model.Count)
    </div>

    <div class="editor-label">
        @T("Time to cache Tweets (in minutes)"):
    </div>
    <div class="editor-field">
        @Html.TextBoxFor(model => model.CacheMinutes)
        @Html.ValidationMessageFor(model => model.CacheMinutes)
    </div>

    <div class="editor-label">
        @T("Additional options"):
    </div>
	
    <div class="editor-field">
        @Html.CheckBoxFor(model => model.ShowReplies) @T("Show replies")
    </div>

    <div class="editor-field">
        @Html.CheckBoxFor(model => model.ShowAvatars) @T("Show avatars")
    </div>

    <div class="editor-field">
        @Html.CheckBoxFor(model => model.ShowUsername) @T("Show username in tweets")
    </div>

    <div class="editor-field">
        @Html.CheckBoxFor(model => model.ShowTimestamps) @T("Show timestamps")
    </div>

    <div class="editor-field" style="margin-left:20px;" data-controllerid="@Html.FieldIdFor(m => m.ShowTimestamps)">
        @Html.CheckBoxFor(model => model.ShowTimestampsAsLinks) @T("Show as links")
    </div>
      
    <div class="editor-field">
        @Html.CheckBoxFor(model => model.ShowMentionsAsLinks) @T("Show mentions as links")
    </div>
    
    <div class="editor-field">
        @Html.CheckBoxFor(model => model.ShowHashtagsAsLinks) @T("Show hashtags as links")
    </div>
</fieldset>